# areas
from django.urls import path

from apps.goods.views import IndexView, ListView, HotGoodsView, MySearchView, DetailView, CategoryVisitCountView, \
    UserBrowseHistory

urlpatterns = [
    path("index/", IndexView.as_view()),
    path("list/<category_id>/skus/", ListView.as_view()),
    path("hot/<category_id>/", HotGoodsView.as_view()),
    path('search/', MySearchView()),
    path('detail/<sku_id>/', DetailView.as_view()),
    # 埋点
    path('detail/visit/<cat_id>/', CategoryVisitCountView.as_view()),
    # 用户浏览记录
    path('browse_histories/', UserBrowseHistory.as_view()),


]
